package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice") //桃花传音
public class Voice implements java.io.Serializable {

    private static final long serialVersionUID = -3136732836884933325L;

    private ObjectId id; //主键id
    private Long voiceId; //自动增长 ,大数据推送使用
    private String created; //创建时间

    private Long userId;//用户id
    private String soundUrl; //语音文件，URL
    private Integer remainingTimes;//剩余次数
    private Integer status = 0;//状态,0 未听过,1 已被听过

}
